package chenqianghao.rbac.domain.vo;

/**
 * 视图对象类型-用户
 *
 * @author 陈蔷好
 * @since 2025/4/7 17:53
 */
public class UserVo {

    public int id;
    /**
     * 用户名，用来登录的
     */
    public String username;

    /**
     * 真实姓名
     */
    public String name;

    /**
     * 电话
     */
    public String mobile;

    /**
     * 邮箱
     */
    public String email;

    /**
     * 所属的部门ID
     */
    public int deptId;

    /**
     * 所属的部门名称
     */
    public String deptName;

    /**
     * 具有的角色ID
     */
    public int roleId;

    /**
     * 具有的角色名称
     */
    public String roleName;

    /**
     * 状态：启用|停用
     */
    public boolean enabled = true;

    public UserVo(int id, String username, String name, String mobile, String email, int deptId, String deptName, int roleId, String roleName, boolean enabled) {
    }

    public UserVo(int id, String username, String name, String mobile, String email, String deptName, int roleId, String roleName, boolean enabled) {
        this.id = id;
        this.username = username;
        this.name = name;
        this.mobile = mobile;
        this.email = email;
        this.deptName = deptName;
        this.roleId = roleId;
        this.roleName = roleName;
        this.enabled = enabled;
    }
}
